var ProxyPdu = require("./proxyPdu.js").ProxyPdu

class MeshBeacon{
  constructor(blemash){
    this.blemash=blemash
  }
  sendSecureNetworkbeacon(secureNetworkbeacon) {
    var secureNetworkbeaconPdu = secureNetworkbeacon.toPdu();
    var proxyPdu = ProxyPdu.prototype.deriveMeshBeaconPdu(secureNetworkbeaconPdu);
    this.blemash.writeProxyValue(proxyPdu);
  }
  receiveSecureNetworkbeacon(secureNetworkbeacon) {
    console.log(secureNetworkbeacon)
  }
}

module.exports = MeshBeacon;